<?php

declare(strict_types=1);

namespace app\api\model;


use think\Model;

/**
 * 积分变动日志
 */
class UserPointsLog extends Model
{

    protected $table = 'evt_user_points_log';

    const DIRECT_ADD = 1;
    const DIRECT_SUB = 2;

    const BUSINESS_TYPE_GAME_DTS_OUT = 100;  //
    const BUSINESS_TYPE_GAME_DTS_IN = 101;  //


    public static function getTypes(): array
    {
        return [

            self::BUSINESS_TYPE_GAME_DTS_OUT,
            self::BUSINESS_TYPE_GAME_DTS_IN,
        ];
    }

    public static function getTypesInfo(): array
    {
        return [
            self::BUSINESS_TYPE_GAME_DTS_OUT => '游戏下注',
            self::BUSINESS_TYPE_GAME_DTS_IN  => '游戏奖励',
        ];
    }
}
